package com.example.demo.service;

import com.example.demo.pojo.Mysell;
import com.example.demo.pojo.Order;

import java.util.List;

/**
 * @author yanglup
 * @create 2020-11-23 20:41
 */
public interface OrdersService {
    /**创建订单*/
    void createorderstable(String openidbuy, String consignee_addr, Integer order_price, Integer goods_id, Integer goods_number, Integer goods_price);
    /**修改状态---修改添加表里的变成1*/
    void updatestatus(Integer goods_id);


    /**点击发货发货的1--买方显示待发货信息*/
    List<Order> awaitorders(String openidbuy);
    /**待收货*/
    List<Order> awairece(String openidbuy);
    /**退款*/
    List<Order> tuikuan(String openidbuy);
    /**全部订单*/
    List<Order> allorders(String openidbuy);

    /**修改为退款状态*/
    void clicktuikuan(Integer goods_id);
    /**修改为确认状态*/
    void confirmget(Integer goods_id);
    /**申请退货*/
    void applyreturngoods(String openidbuy, Integer goods_id);


    /**卖家已发货*/
    void delivergoods(Integer goods_id);
    /**卖家同意退货*/
    void agreereturn(String openid, Integer goods_id);
    /**卖家待发货*/
    List<Order> selldaifahuo(String openid);
    /**卖家待收货*/
    List<Order> sellyifahuo(String openid);
    /**卖家退款*/
    List<Order> selltuihuo(String openid);
    /**卖家全部订单*/
    List<Order> sellallgoods(String openid);

/**--------------------------------mysell------------------------------------------------*/
    List<Mysell> mysell(String openid);
    Integer mysellcount(String openid);


}
